#ifndef IPCSERVER_H
#define IPCSERVER_H

#include <QtCore/QObject>

class QTcpServer;
class QTcpSocket;
class Traitement;

class IpcServer : public QObject
{
	Q_OBJECT
public:
	IpcServer(QObject *parent = 0);

private slots:
	void gotNewConnection();
	void readCommand();

private:
	void initServer();

private:
	QTcpServer *mServer;
	QTcpSocket *mMainAppSocket;
	Traitement *mTraitement;
};

#endif
